package com.vpen.payment.service.impl;

import com.vpen.commons.pojo.Payment;
import com.vpen.payment.mapper.PaymentMapper;
import com.vpen.payment.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * -@Version 1.0
 * -@Author:Vpen
 * -@Date:2021/3/16 19:08
 * -@Content:
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    PaymentMapper paymentMapper;

    @Override
    public Payment selectPaymentById(Integer id) {
        return paymentMapper.selectPaymentById(id);
    }

    @Override
    public Integer creatPayment(Payment payment) {
//        return paymentMapper.creatPayment(payment);
        return paymentMapper.insert(payment);
    }
}
